package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品管理对象 mgmt_base_spu
 * 
 * @author shan
 * @date 2024-12-05
 */
public class MgmtBaseSpu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 产品类型ID */
    @Excel(name = "产品类型ID")
    private Long spuClassId;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String code;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 产品详情介绍 */
    @Excel(name = "产品详情介绍")
    private String desc;

    /** 成本（万元） */
    @Excel(name = "成本", readConverterExp = "万=元")
    private BigDecimal cost;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private Integer isEffective;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSpuClassId(Long spuClassId) 
    {
        this.spuClassId = spuClassId;
    }

    public Long getSpuClassId() 
    {
        return spuClassId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDesc(String desc) 
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }
    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }
    public void setIsEffective(Integer isEffective) 
    {
        this.isEffective = isEffective;
    }

    public Integer getIsEffective() 
    {
        return isEffective;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("spuClassId", getSpuClassId())
            .append("code", getCode())
            .append("name", getName())
            .append("desc", getDesc())
            .append("cost", getCost())
            .append("isEffective", getIsEffective())
            .toString();
    }
}
